
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Grebok.Common;
using Grebok.Common.Configuration;

namespace EVegetable.Persistence.Test.DataManager
{
    public class TeBiz_PurchaseOrderManager : BaseManager
    {
        #region private field

        private static TeBiz_PurchaseOrderManager manager;
        #endregion

        #region Properties
        
        public String PurOrderID
        {
            get { return GetConfig<String>("PurOrderID"); }
            set { SetConfig<String>("PurOrderID", value); }
        }
        
        public Int32? MemberID
        {
            get { return GetConfig<Int32?>("MemberID"); }
            set { SetConfig<Int32?>("MemberID", value); }
        }
        
        public Int32? RecipientID
        {
            get { return GetConfig<Int32?>("RecipientID"); }
            set { SetConfig<Int32?>("RecipientID", value); }
        }
        
        public Int32? DispatchID
        {
            get { return GetConfig<Int32?>("DispatchID"); }
            set { SetConfig<Int32?>("DispatchID", value); }
        }
        
        public Int32? PaymentID
        {
            get { return GetConfig<Int32?>("PaymentID"); }
            set { SetConfig<Int32?>("PaymentID", value); }
        }
        
        public String PurchaseDate
        {
            get { return GetConfig<String>("PurchaseDate"); }
            set { SetConfig<String>("PurchaseDate", value); }
        }
        
        public String Status
        {
            get { return GetConfig<String>("Status"); }
            set { SetConfig<String>("Status", value); }
        }
        
        public Int32? Creator
        {
            get { return GetConfig<Int32?>("Creator"); }
            set { SetConfig<Int32?>("Creator", value); }
        }
        
        public DateTime? CreatedDate
        {
            get { return GetConfig<DateTime?>("CreatedDate"); }
            set { SetConfig<DateTime?>("CreatedDate", value); }
        }
        
        public Int32? Modifier
        {
            get { return GetConfig<Int32?>("Modifier"); }
            set { SetConfig<Int32?>("Modifier", value); }
        }
        
        public DateTime? ModifiedDate
        {
            get { return GetConfig<DateTime?>("ModifiedDate"); }
            set { SetConfig<DateTime?>("ModifiedDate", value); }
        }
        

        #endregion

        #region Constructor

        /// <summary>
        /// TeBiz_PurchaseOrderManager
        /// </summary>
        private TeBiz_PurchaseOrderManager()
        {
            IApplicationConfiguration configuration = ApplicationConfigurationFactor.CreateApplicationConfiguration();
            appPropertiese = new ApplicationProperties(configuration[PropertiesConst.TEBIZ_PURCHASEORDER_PROPERTIES_FILE_NAME_KEY],
                configuration[PropertiesConst.TEBIZ_PURCHASEORDER_PROPERTIES_SECTION_NAME_KEY]);

            appPropertieseValues = new Dictionary<string, object>();
        }
        #endregion

        #region TeBiz_PurchaseOrderManager Instance

        /// <summary>
        /// TeBiz_PurchaseOrderManager's Instance
        /// </summary>
        public static TeBiz_PurchaseOrderManager Instance
        {
            get
            {
                if (manager == null)
                {
                    manager = new TeBiz_PurchaseOrderManager();
                }
                return manager;
            }
        }
        #endregion

    }
}
